<?php
	require_once('inc.config.php');
	
	$action = $_GET["action"];

	if($action=="add"){
		$result = $mySellhouse->addOneHouse(); 
	}else if($action=="edit"){
		$result = $mySellhouse->updateOneHouse();
	}else if($action=="delete"){
		$result = $mySellhouse->deleteOneHouse();
	}else if($action=="update"){
		$result = $mySellhouse->updateListSellHouse($_GET["upordown"]);
		echo $result;
		exit;
	}


	if($result=="success"){
		header("Location:agent_admin_success.php?type=sh");
		exit;
		/*if(__user_prop__==0){
			header("Location:agent_admin_success.php?type=sh");
			exit;
		}else{
			header("Location:user_admin_shlist.php");
			exit;
		}*/
	}
?>